﻿#pragma once

#include <SFML/Network.hpp>
#include "../../abstract/IBoardView.h"
#include "../../../domain/network/GameClient.h"

namespace Views {
	namespace Remote {
		class BoardView: public IBoardView
		{
			Domain::Network::GameClient* client; /**< Klient gracza */
			Cards::CardsCollection cards; /**< Wszystkie karty w grze */
			Cards::RoomsCards rooms_cards; /**< Karty pokojów */

		public:
			/**
			* @param game_client Połączony z serwerem klient gry
			*/
			BoardView(Domain::Network::GameClient*);

			virtual void askForPlayerNewPosition(Players::Player*, Cards::RoomsCards);
		protected:
			virtual void onRoomPick(sf::Packet);
		};
	}
}

